<template>
	<view class="bg">
		<!-- 轮播和九宫格 -->
		<view>
			<homeTop type="2"></homeTop>
		</view>

		<!-- 猜你喜欢 -->
		<view class="flex plr-36 mt-35 mb-20">
			<view class="size-34 bold">猜你喜欢</view>
		</view>
		<view class="mlr-36">
			<storeItem v-for="(item, key) in list" :item="item"></storeItem>
		</view>
	</view>
</template>

<script>
	import {mapState} from 'vuex'
	export default {
		data() {
			return {
				list:[]
			}
		},
		onShow() {
			this.init()
		},
		computed:{
			...mapState(['height'])
		},
		methods: {
			init() {
				this.$http('/api/shop/guess_like', {
					type: 2
				}).then(data => {
					this.list = data
				})
			},

		}

	}
</script>

<style lang="scss" scoped>

</style>
